toChoices
fun toChoices(widgetType: ValidatedChoice.WidgetType = WidgetType.POPUP, translationProvider: BiFunction<T, String, MutableText> = BiFunction { t, _ -> t.transLit(t.toString()) }, descriptionProvider: BiFunction<T, String, Text> = BiFunction { t, _ -> t.descLit("") }): ValidatedChoice<T>
Converts this ValidatedList into ValidatedChoice wrapping this list as the valid choice options
Return
ValidatedChoice with options based on this list's contents
Author
fzzyhmstrs
Since
0.2.0, added optional params 0.3.6
Parameters
descriptionProvider
BiFunction T, String, Text - converts a choice instance T and the base translation key of this ValidatedChoice into a text Description: NOTE: translation key, not description key. This is the same base key as provided to translationProvider
widgetType
WidgetType defines the GUI selection type. Defaults to POPUP